<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/8/22
 * Time: 17:38
 * name:新增学校班级
 * url:/erpSchoolClass/add_school_class
 */

$smar_omarid                = $route->bodyParams['smar_omarid'];
$smar_osid                  = $route->bodyParams['smar_osid'];
$smar_reality_course_time   = $route->bodyParams['smar_reality_course_time'];
$smar_result_course_time    = $route->bodyParams['smar_result_course_time'];
$smar_surplus_time          = $route->bodyParams['smar_surplus_time'];
$osc_name                   = $route->bodyParams['osc_name'];

//写入数组
$insertArr = [
    'smar_omarid'                 =>$smar_omarid,
    'smar_osid'                   =>$smar_osid,
    'smar_reality_course_time'    =>$smar_reality_course_time,
    'smar_result_course_time'     =>$smar_result_course_time,
    'smar_surplus_time'           =>$smar_surplus_time,
    'create_time'                 =>time()
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_student_monthly_archiving_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );